package com.mxpio.erp.plan.mrp.bo;

import java.math.BigDecimal;
import java.util.Date;

public class RecordSheet implements Comparable<RecordSheet> {
	
	private String itemCode;
	
	private BigDecimal count;
	
	private Date executeDate;
	
	private Integer type;
	
	private String remark;
	
	private String indexes;
	
	public String getItemCode() {
		return itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}

	public BigDecimal getCount() {
		return count;
	}

	public void setCount(BigDecimal count) {
		this.count = count;
	}

	public Date getExecuteDate() {
		return executeDate;
	}

	public void setExecuteDate(Date executeDate) {
		this.executeDate = executeDate;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public int compareTo(RecordSheet o) {
		if(this.executeDate.before(o.getExecuteDate())){
			return -1;
		}else if(this.executeDate.equals(o.getExecuteDate())){
			return 0;
		}else{
			return 1;
		}
	}

	public String getIndexes() {
		return indexes;
	}

	public void setIndexes(String indexes) {
		this.indexes = indexes;
	}

}
